<html>
<head>
<title>管理系统</title>
<meta http-equiv=Content-Type content=text/html;charset=utf-8>
<#include "../inc/commonJs.html">
<script language="JavaScript">
	var grid;
	$(function() {
		grid = $('#emailstategrid').datagrid({
        url:'listUserEmailState.do?emailid=${emailid!}',  
        loadMsg:'数据加载中请稍后……',  
        pagination: true,  
        rownumbers: true, 
        striped: true,  
        singleSelect : true,  
        columns:[[  
             {field:'sender',title: '发件人',align: 'center',width: '120'},
             {field:'receiver',title: '收件人',align: 'center',width: '120'},
             {field:'isread',title: '是否阅读',align: 'center',width: '100',
             	formatter: function(value,rowdata,index){
             		var str = '';
					if(value ==0){
						str = '<font color="red">未读</font>';
					}else{
						str = '已读';
					}
					return str;
				}
			},
            {field:'replyid',title: '是否回复',align: 'center',width: '100',
             	formatter: function(value,rowdata,index){
             		var str = '';
					if(value ==0){
						str = '<font color="red">未回复</font>';
					}else{
						str = '已回复';
					}
					return str;
				}
			}			
         ]]
     });
	});
	
</script>

</head>
<body >
	<table id="emailstategrid" data-options="fit:true,border:false"></table>
</body>
</html>